libcoap 4.3.5
Loading...
Searching...
No Matches
coap_defines.h
Go to the documentation of this file.
1/*
2 * cmake_coap_defines.h -- optional #defines used for building libcoap
3 *
4 * Copyright (C) 2024-2025 Jon Shallow <supjps-libcoap@jpshallow.com>
5 *
6 * SPDX-License-Identifier: BSD-2-Clause
7 *
8 * This file is part of the CoAP library libcoap. Please see README for terms
9 * of use.
10 */
11
16
17#ifndef COAP_DEFINES_H_
18#define COAP_DEFINES_H_
19
20
21/* Define to build support for Unix socket packets. */
22#define COAP_AF_UNIX_SUPPORT 1
23
24/* Define to 1 to build with support for async separate responses. */
25#define COAP_ASYNC_SUPPORT 1
26
27/* Define to 1 if libcoap supports client mode code. */
28#define COAP_CLIENT_SUPPORT 1
29
30/* Define to 1 if the system has small stack size. */
31/* #undef COAP_CONSTRAINED_STACK */
32
33/* Define to 1 to build without TCP support. */
34#define COAP_DISABLE_TCP 0
35
36/* Define to 1 if the system has epoll support. */
37#define COAP_EPOLL_SUPPORT 1
38
39/* Define to build support for IPv4 packets. */
40#define COAP_IPV4_SUPPORT 1
41
42/* Define to build support for IPv6 packets. */
43#define COAP_IPV6_SUPPORT 1
44
45/* Define to level if max logging level is not 8 */
46/* #undef COAP_MAX_LOGGING_LEVEL */
47
48/* Define to 1 to build with OSCORE support. */
49#define COAP_OSCORE_SUPPORT 1
50
51/* Define to 1 if libcoap supports proxy code. */
52#define COAP_PROXY_SUPPORT 1
53
54/* Define to 1 to build with Q-Block support. */
55#define COAP_Q_BLOCK_SUPPORT 1
56
57/* Define to 1 if libcoap supports server mode code. */
58#define COAP_SERVER_SUPPORT 1
59
60/* Define to 1 detect recursive locking detection support */
61#define COAP_THREAD_RECURSIVE_CHECK 1
62
63/* Define to 1 if libcoap has thread safe support */
64#define COAP_THREAD_SAFE 1
65
66/* Define to 1 if the system has libgnutls28. */
67/* #undef COAP_WITH_LIBGNUTLS */
68
69/* Define to 1 if the system has libmbedtls2.7.10. */
70/* #undef COAP_WITH_LIBMBEDTLS */
71
72/* Define to 1 if the system has libssl1.1. */
73#define COAP_WITH_LIBOPENSSL 1
74
75/* Define to 1 if the system has libtinydtls. */
76/* #undef COAP_WITH_LIBTINYDTLS */
77
78/* Define to 1 if the system has libwolfssl. */
79/* #undef COAP_WITH_LIBWOLFSSL */
80
81/* Define to 1 to build support for persisting observes. */
82#define COAP_WITH_OBSERVE_PERSIST 1
83
84/* Define to 1 to build with WebSockets support. */
85#define COAP_WS_SUPPORT 1
86
87#endif /* COAP_DEFINES_H_ */